package test;

import java.util.EventObject;

public class CustomEvent extends EventObject {
    /**
     * Constructs a prototypical Event.
     *
     * @param source The object on which the Event initially occurred.
     * @throws IllegalArgumentException if source is null.
     */
    public CustomEvent(Object source, String message) {
        super(source);
        this.message=message;
    }

    private String message;

    public String getMessage() {
        return message;
    }
}
